package high.concurrent.constant;

/**
 * redisKey常量
 *
 * @Description
 * @Author 黄保泽
 * @Version 1.0
 **/

public class CacheKey {

    /**
     * 注册验证码，第一个是类型，第二个是接收号码
     */
    public static final String CHECK_CODE_KEY = "code:%s:%s";

    /**
     * 图片验证码
     */
    public static final String GRAPH_CODE_KEY = "user:captcha:graph:";


    /**
     * 邮箱/手机验证码
     */
    public static final String CODE_KEY = "user:captcha:";

    /**
     * 购物车 hash 结果，key是用户唯一标识
     */
    public static final String CART_KEY = "cart:%s";


    /**
     * 提交表单的token key
     */
    public static final String SUBMIT_ORDER_TOKEN_KEY = "order:submit:%s";

    /**
     * 领券接口的分布式锁redessonKey
     */
    public static final String COUPON_RECEIVE_REDESSON_KEY = "lock:coupon:receive:%s";

    /**
     * 下单防重提交TOKEN
     */
    public static final String ORDER_REPAY_TOKEN_KEY = "order:repay:%s";


}
